package com.infore.dataReceiving.core.enums;

/**
 * 指令正则表达式枚举
 * @author 69457
 *
 */
public enum Air212InstructionsRegularExpressionEnum {
	Air212_Instructions("Instructions","^##(\\d{4})"
			+ "(QN=(\\d{17})"
			+ ";ST=(\\d{2})"
			+ ";CN=(\\d{4})"
			+ ";PW=(\\w{6,8})"
			+ ";MN=(\\w{3,15})"
			+ ";CP=&&"
			+ "DataTime=(\\d{14});(.*)"
			+ "&&)"
			+ "(\\w{4})\\r\\n$"),
//	Air212_Instructions("Instructions","^##(\\d{4})"
//			+ "(ST=(\\d{2})"
//			+ ";CN=(\\d{4})"
//			+ ";PW=(\\w{6,8})"
//			+ ";MN=(\\w{3,15})"
//			+ ";CP=&&"
//			+ "DataTime=(\\d{14});(.*)"
//			+ "&&)"
//			+ "(\\w{4})\\r\\n$"),
	Air212_Instructions_Flag("Instructions_Flag",",(\\w+)-Flag=(\\w+),"),
	Air212_Instructions_Rtd("Instructions_Rtd",",\\w+-Rtd=([-|\\w|.]+),"),
	Air212_Instructions_ProjectCode("Instructions_ProjectCode",",(\\w+-Zs)Rtd=([-|\\w|.]+),");
	
	Air212InstructionsRegularExpressionEnum(String key,String parrtern){
		this.key = key;
		this.parrtern = parrtern;
	}
	
	private String key;
	private String parrtern;
	
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getParrtern() {
		return parrtern;
	}
	public void setParrtern(String parrtern) {
		this.parrtern = parrtern;
	}

}
